import Wf from './modules/wf/index.js';
import router from './modules/router/index.js';
import store from './modules/store/index.js';
import cloud from './modules/cloud/index';
import reporter from './modules/reporter/index';
import login from './modules/login/index';

const wf = new Wf();

async function sdk() {
	wf.use(router);
	wf.use(store);
	wf.use(cloud);
	wf.use(reporter);
	wf.use(login);

	console.log(wf);

	window.wf = wf;
	return wf;
}

export default sdk;
